Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent feedback from appearing in the inline-code-snippet field #7194

Closed

Conversation

NBNARADHYA
Copy link

Fixes first part of carbon-design-system/carbon-website#1932

In the live demo, the feedback text was appearing in the code-snippet field (for inline type). This has now been prevented from appearing.

Changelog

Removed

  • Feedback text from inline code-snippet field

Testing / Reviewing

Before

97487907-e58a3a80-1933-11eb-928c-6c0b213051d3

After

Peek 2020-10-31 11-58

@NBNARADHYA NBNARADHYA requested a review from a team as a code owner October 31, 2020 08:21
@netlify
Copy link

netlify bot commented Oct 31, 2020

Deploy preview for carbon-elements ready!

Built with commit 874e159

https://deploy-preview-7194--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Oct 31, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 874e159

https://deploy-preview-7194--carbon-components-react.netlify.app

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this issue is a website-only issue since it does not appear in the storybook. Seems a font size style rule is being overridden in the Carbon website

@@ -68,7 +68,6 @@ export default function Copy({
(!children && (animation ? feedback : other['aria-label'])) || null
}>
{children}
{animation ? feedback : other['aria-label']}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can remove this line since it announces the feedback to screenreaders IIRC

Copy link
Author

@NBNARADHYA NBNARADHYA Nov 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we change the aria-label to the button as follows ?
<button ... aria-label={animation ? feedback : other['aria-label']}> ... </button>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we need to change the component at all since the issue you reported is only found in the website. as I mentioned earlier I believe a font-size style rule is being overwritten in the website stylesheet but I haven't looked into it closely

@joshblack
Copy link
Contributor

Going to close this out due to @emyarod's feedback that this is most likely related to the website as the component does not reflect this behavior in the storybook.

Feel free to re-open if I've made a mistake here!

@joshblack joshblack closed this Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants